package io.itit.ecp.admin.provide.action.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.itit.grass.common.provide.action.req.BasePageReq;
import io.itit.grass.common.provide.action.validation.IUpload;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：碳排放规划配置查询参数
 * @Date：Create by 2024-01-11 16:45:38
 */
@Data
@ToString
@ApiModel("碳排放规划配置查询参数")
public class CarbonEmissionPlanQueryReq extends BasePageReq {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键集合")
    private List<String> ids;

    @ApiModelProperty("项目Id")
    private String sceneProjectId;

    @ApiModelProperty("楼栋Id")
    private String sceneEdificeId;

    @NotNull(groups = IUpload.class)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生效开始日期")
    private Date effectiveTimeStart;

    @NotNull(groups = IUpload.class)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生效结束日期")
    private Date effectiveTimeEnd;

    @ApiModelProperty("机构Id")
    private String deptId;

}